<?php

function fieldMap($field) {
    $fieldMap = [
        'username' => '用户名',
        'email' => '邮箱',
        'password' => '密码',
        'title' => '标题',
        'category_id' => '分类',
        'content' => '内容',
        'user_id' => '用户ID',
        'article_id' => '文章ID',
        'file' => '文件',
        'avatar' => '头像URL'
    ];
    return $fieldMap[$field];
}